In any religion, the natural, religious and familial environments in which the founder was born are closely connected with the founder's teachings. If the doctrines and logic are discussed without understanding these environments, it often ends in superficial and meaningless discussion. I will therefore touch on the environment and social conditions surrounding Śākyamuni Gautama's birth before I discuss how the Buddha's consciousness evolved before he attained satori i.e., enlightenment.
Śākyamuni's mother died soon after his birth, and his aunt raised him. He grew up without knowing a mother's true affection, and this seems one of the causes for his preaching of compassion. Another cause would be a large-scale socio-environmental change in India at the time he was born. By Śākyamuni's time, the number of agricultural products had increased, a monetary system had been instituted, and commercial and industrial markets had developed, all of which suppressed the traditional authority of the Brāhmans. People engaging in commerce and industry accumulated economic power and the cities developed accordingly. In addition, military power was increased to counteract invasions into India by the forces of other ethnic groups. This led to an increase in power of the Kṣatriyas (warrior class), which made it difficult for the Brahmans to regulate social organization. Śākyamuni's own country was small and weak, and there was a constant fear of it being merged into the neighbouring country of Kosala. Materialism, which is different from Brahmanical teachings, was widespread, and there was a social environment receptive to free thinking. Gautama's own agony laid the foundation for his teaching that this world is a world of suffering. Under these conditions, new religions based on Hinduism, such as Śākyamuni's, were generally accepted.